home *** CD-ROM | disk | FTP | other *** search
/ The Business Master (4th Edition) / The Business Master - 4th Edition.iso / files / comphelp / whatvga / filename.txt < prev    next >
Text File  |  1993-11-26  |  5KB  |  185 lines

  1. DOS imposes certain restrictions on
  2. the names which can be given to
  3. files.  There are also a set of
  4. conventions which have been applied
  5. to filenames.
  6.  
  7.              The Format
  8.  
  9.     A filename can be composed of
  10. from 1 to 8 letters, numbers or
  11. certain punctuation marks
  12. (collectively called characters).  A
  13. filename can also have an optional
  14. extension containing from 1 to 3 more
  15. characters.  If the filename has an
  16. extension, the main name is separated
  17. from the filename by a period, called
  18. "Dot" by computer experts. Example:
  19.  
  20. README.1ST
  21.  
  22.           The Restrictions
  23.  
  24.     Filenames cannot contain a space,
  25. question mark, or exclamation point,
  26. or many other punctuations such as
  27. backslash.  The underline and the
  28. dash characters are legal, and are
  29. frequently used instead of a space to
  30. make a two-word filename more
  31. legible.  Examples:
  32.  
  33. TWO_WORD.TXT
  34. READ-ME.1ST
  35.  
  36.            Capitalization
  37.  
  38. Whether the letters in a filename are
  39. capitalized or lower-case does not
  40. matter.  README, ReadMe, and readme
  41. are all the same file to DOS.
  42.  
  43.            The Conventions
  44.  
  45. Many extensions have become
  46. standardized and are known to
  47. represent certain types of files:
  48.  
  49. .ASC - An ASCII text file.  ASCII
  50. stands for American Standard Code for
  51. Information Interchange. These files
  52. contain plain old text, which can be
  53. used by most programs which work with
  54. text.  This is the native text format
  55. of DOS.  There are other proprietary
  56. text formats created by specific word
  57. processing programs, but ASCII is
  58. used when the author wants a standard
  59. file which can be used with a wide
  60. variety of text viewers or programs.
  61. Files with extensions other than .ASC
  62. can also contain ASCII text.
  63.  
  64. .BMP - A picture file.
  65.  
  66. .CNF - Customized configuration
  67. information for use by a program.
  68. Has no function by itself.
  69.  
  70. .COM - A small program which can
  71. usually be run merely by typing it's
  72. name on the command line and pressing
  73. the [Enter] key.
  74.  
  75. .DLL - An auxiliary file required
  76. by a Windows program which has no
  77. function by itself.
  78.  
  79. .DOC - A file containing standard
  80. ASCII text which can be displayed
  81. with most text viewing, editing and
  82. word processing programs or printed
  83. onto paper.
  84.  
  85. .EXE - A small or large program which
  86. can often be run merely by typing
  87. it's name on the command line and
  88. pressing the [Enter] key.
  89.  
  90. .GIF - A picture file.
  91.  
  92. .ICO - An icon for a Windows
  93. program.
  94.  
  95. .INI - Customized configuration
  96. information for use by a program.
  97. Has no function by itself.
  98.  
  99. .OVR - An auxiliary file required
  100. by a DOS program.  Has no function by
  101. itself.
  102.  
  103. .PCX - A picture file.
  104.  
  105. .TIF - A picture file.
  106.  
  107. .TXT - A file containing standard
  108. ASCII text can be displayed with most
  109. text viewing, editing and word
  110. processing programs, or printed onto
  111. paper.
  112.  
  113. .VOC - A sound file, usually
  114. digitized speech.
  115.  
  116. .WAV - A sound file.
  117.  
  118.              BATCH FILES
  119.  
  120. .BAT - A batch file.  These can be
  121. run like programs, by simply typing
  122. the batch file name on the command
  123. line and pressing the [Enter] key. If
  124. examined with a text viewing program,
  125. batch files are found to contain
  126. ordinary text.  In fact, they are
  127. commands to DOS, exactly as you would
  128. type them on the command line.  Many
  129. batch files have several lines.  Each
  130. line is executed by DOS as soon as
  131. the previous line is done.  BATCH
  132. files are used to automate tasks
  133. which otherwise would require much
  134. typing.  For instance to copy three
  135. files, then delete one of them and
  136. run another would look like this if
  137. you had to type it all on the command
  138. line:
  139.  
  140. COPY C:\FIRST.DOC A:
  141. COPY C:\SECOND.TXT A:
  142. COPY C:\FIRST.EXE A:
  143. DEL C:\SECOND.TXT
  144. C:\FIRST
  145.  
  146. However, it could be typed into a
  147. batch file just once, you could give
  148. the batch file any DOS-legal filename
  149. ending with .BAT, and then by simply
  150. typing the name of the file on the
  151. command line, all five operations
  152. will automatically occur.
  153.  
  154.           INSTRUCTION FILES
  155.  
  156. Many new programs come with text
  157. files on their disks which you can
  158. view with a text viewing or word
  159. processing program.  These contain
  160. instructions for using the program or
  161. are are last minute changes made
  162. after the program owner's manual was
  163. printed.  They usually have names
  164. ending in .DOC or .TXT, or names such
  165. as:
  166.  
  167. READ.ME
  168. README.1ST
  169. READ.NOW
  170.  
  171.              DIRECTORIES
  172.  
  173. The structure of directory names is
  174. very similar to filenames.  There is
  175. an 8 character limit. Extensions on
  176. directory names are rare, but
  177. possible. A directory name can have
  178. an extension of up to 3 more
  179. characters after the "dot." For more
  180. information on directories, see the
  181. Directory section.
  182.  
  183. _____________________________________
  184.                          end of file.
  185.